Skip to content

🤖 refactor: Kubernetes-style linked API reference types#64

Merged
ThomasK33 merged 3 commits into
mainfrom
docs-jzmx
Feb 12, 2026
Merged

🤖 refactor: Kubernetes-style linked API reference types#64
ThomasK33 merged 3 commits into
mainfrom
docs-jzmx

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

Summary

This PR reworks generated API reference docs to use a Kubernetes-style, linkable layout that is easier to scan.

Background

Our previous output flattened nested fields into tree-style rows within the top-level Spec/Status tables. That made pages dense and hard to navigate, and repeated shared types across rows.

Implementation

  • Updated hack/crd-ref-docs/templates/markdown/gv_list.tpl to:
    • keep top-level Spec/Status tables focused on direct fields,
    • render local project types as same-page links,
    • collect referenced local types recursively,
    • emit a ## Referenced types section with type-specific field tables.
  • Kept Kubernetes built-in types linked to upstream Kubernetes API docs via crd-ref-docs link rendering.
  • Regenerated docs under docs/reference/api/*.md.

Validation

  • make verify-vendor
  • make test
  • make build
  • make lint
  • make docs-reference
  • mkdocs build --strict

Risks

Low to medium. This change is template/output focused and does not affect runtime behavior, but link structure and table formatting could impact readability and downstream docs expectations.


Generated with mux • Model: openai:gpt-5.3-codex • Thinking: xhigh • Cost: $0.67

Adopt a Kubernetes-style API reference layout in generated docs.

- Keep Spec/Status tables focused on top-level fields.
- Render referenced local types later on the same page under a dedicated section.
- Link local types to same-page anchors and keep Kubernetes types linked to upstream API docs.
- Regenerate all API reference pages using the updated template.

---

_Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$0.67`_

<!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=0.67 -->
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9dab06c4c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread hack/crd-ref-docs/templates/markdown/gv_list.tpl Outdated
Address docs-quality CI failures from markdownlint by tightening generated Markdown output.

- Refined the API reference template row/type rendering to reduce malformed line merges.
- Added post-generation blank-line normalization in `hack/update-reference-docs.sh`.
- Regenerated API reference docs and verified markdownlint/cspell cleanliness.

---

_Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$0.67`_

<!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=0.67 -->
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

Prevent markdown table breakage by normalizing generated blank lines in API reference docs.

- Keep at most one consecutive blank line globally.
- Remove blank lines that appear directly after markdown table separator rows.
- Preserve deterministic docs output in `make docs-reference` for CI checks.

---

_Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$0.67`_

<!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=0.67 -->
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ThomasK33 ThomasK33 added this pull request to the merge queue Feb 12, 2026
@ThomasK33

Copy link
Copy Markdown
Member Author

Merged via the queue into main with commit a84bece Feb 12, 2026
11 checks passed
@ThomasK33 ThomasK33 deleted the docs-jzmx branch February 12, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant